package com.yxc.knife4jdemo.controller;

import com.yxc.knife4jdemo.common.entity.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: YXC
 * @time: 2024/1/9 17:11
 **/
@Api("启动接口")
@RestController
@RequestMapping("/run")
public class RunController {

    @GetMapping("projectName")
    @ApiOperation("获取项目名称")
    public R getProjectName() {
        return R.ok("knife4j-demo");
    }

}
